//
//  ZYHttpTool.h
//  JW_BasePorject
//
//  Created by JW on 2018/6/19.
//  Copyright © 2018年 JW. All rights reserved.
//

#import "ZYRequest.h"

/*! 定义请求成功的 block */
typedef void( ^ ZYResponseSuccess)(id response);
/*! 定义请求失败的 block */
typedef void( ^ ZYResponseFail)(NSError *error);

@interface ZYHttpTool : ZYRequest

+ (ZYHttpTool *)requestWithType:(ZYRequestMethod)type
                      urlString:(NSString *)urlString
                         params:(NSDictionary *)params
                        success:(ZYResponseSuccess)success
                           fail:(ZYResponseFail)fail;

@end
